<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of class
 *
 * @author Administrator
 */
class ReportWrongWord {
    private $smarty = null;
    private $s = null;
    public function __construct() {

        include_once($_SERVER['DOCUMENT_ROOT'] . "/RecJP/class/class.SqliteHelper.php");
        include_once($_SERVER['DOCUMENT_ROOT'] . "/RecJP/class/Model/Model.userMemory.php");
        include_once($_SERVER['DOCUMENT_ROOT'] . "/RecJP/class/DAL/DAL.ReportWrongWord.php");
        include_once($_SERVER['DOCUMENT_ROOT'] . "/RecJP/inc/smarty_inc.php");
        include_once($_SERVER['DOCUMENT_ROOT'] . "/RecJP/Common.php");
        $this->smarty = getSmarty();
        $this->s = new SqliteHelper();
    }
    public function display($wid) {
        $word= Dal_danciOperator::GetWordBywid($wid);
        if(count($word)>0)
        {
             $this->smarty->assign("word", $word[0]);
        }
        $this->smarty->display('reportwrongword.tpl.htm');
    }
    
    public function SaveReportWrongWord($ReportWongWord)
    {
        DAL_ReportWongWord::insert($ReportWongWord);
    }
}

?>
